package cn.bonoon.kernel.support.entities;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import cn.bonoon.kernel.support.IOperator;

@MappedSuperclass
public class AbstractStatusEntity extends AbstractEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4061575695181396893L;
	@Column(name = "C_STATUS")
	private int status;

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	/**
	 * status 0未提交 1审核通过 -1退回待修改 2等待审核中
	 */
	public void setParam(Date date, IOperator operator) {
		this.setStatus(0);
		this.setOwnerId(operator.getOwnerId());
		super.setCreateParam(date, operator);
	}
}
